WPDiscourse\Test\DiscoursePublishTest S

Total Complexity 26
Dependencies 3
Dependents 0
Total lines 634
Lines of code 370
Logical lines of code 248
Comment lines 158
Methods 23
Properties 1

Methods 23

Method Rating Maintainability Complexity Lines of code
test_exclude_tags_with_non_exclusionary_tag()
S
51 3 27
test_exclude_tags_with_exclusionary_tag()
S
55 2 19
test_sync_to_discourse_when_updating_with_featured_link()
S
50 1 29
test_sync_to_discourse_pin_topic()
S
51 1 27
test_sync_to_discourse_when_updating_with_deleted_topic()
S
50 1 27
initialize_variables()
S
52 1 27
test_sync_to_discourse_when_updating_with_direct_db_publication_flags()
S
53 1 22
test_sync_to_discourse_when_creating_with_embed_error()
S
53 1 21
test_sync_to_discourse_when_creating_with_enqueued_post()
S
54 1 20
test_sync_to_discourse_when_updating()
S
54 1 20
test_sync_to_discourse_when_creating_with_category_error()
S
54 1 20
test_sync_to_discourse_when_creating_with_response_body_error()
S
55 1 19
test_sync_to_discourse_when_creating_with_direct_db_publication_flags()
S
55 1 18
test_sync_to_discourse_when_creating()
S
56 1 16
test_remote_post_failed_to_connect()
S
62 1 12
setUp()
S
68 1 7
test_remote_post_success()
S
70 1 6
test_remote_post_forbidden()
S
64 1 9
test_remote_post_unprocessable()
S
64 1 9
build_post_error()
S
74 1 4
build_body_error()
S
74 1 4
build_notice()
S
79 1 3
setUpBeforeClass()
S
77 1 4